home *** CD-ROM | disk | FTP | other *** search
- package Z;
-
- import N.Z;
- import S.I;
- import chess.MobileChess;
- import javax.microedition.lcdui.Alert;
- import javax.microedition.lcdui.AlertType;
- import javax.microedition.lcdui.Command;
- import javax.microedition.lcdui.CommandListener;
- import javax.microedition.lcdui.Displayable;
- import javax.microedition.lcdui.Form;
- import javax.microedition.lcdui.Image;
- import javax.microedition.lcdui.TextField;
-
- // $FF: renamed from: Z.C
- public class class_0 extends Form implements CommandListener, I {
- private TextField INFO = new TextField("Name", (String)null, 7, 0);
- private TextField addCommand = new TextField("Password", (String)null, 7, 65536);
- private Command append = new Command("Back", 2, 1);
- private Command commandAction = new Command("Login", 1, 1);
- private MobileChess getString;
-
- public class_0(MobileChess var1) {
- super("Login...");
- this.getString = var1;
- ((Form)this).append(this.INFO);
- ((Form)this).append(this.addCommand);
- ((Displayable)this).addCommand(this.append);
- ((Displayable)this).addCommand(this.commandAction);
- ((Displayable)this).setCommandListener(this);
- }
-
- public final void commandAction(Command var1, Displayable var2) {
- if (var1 == this.commandAction) {
- B.I var3 = new B.I(this.INFO.getString(), this.addCommand.getString(), 0, 1);
- G.I var4 = new G.I();
- ((Z)var4).I("gateAddress", "193.41.161.131");
- ((Z)var4).I("uin", ((M.I)var3).J());
- ((M.I)var3).Z(54L, var4);
- this.getString.Z(var3);
- this.getString.I(this.getString.Z());
- J.I var5 = this.getString.I();
- var5.I("C.I", this);
- C.Z var6 = new C.Z(var3);
- var5.I(var6, MobileChess.B(), 54L);
- var5.I(54L);
- } else if (var1 == this.append) {
- J.I var7 = this.getString.I();
- if (var7 != null) {
- var7.I("C.I");
- }
-
- this.getString.I(new B(this.getString));
- }
-
- }
-
- // $FF: renamed from: I (J.B) void
- public final void method_0(J.B var1) {
- C.I var2 = (C.I)var1.I();
- boolean var3 = var2.I();
- String var4;
- if (var3) {
- var4 = "You've entered";
- this.getString.Z().I(54L);
- this.getString.I().I("C.B", new I.I(this.getString));
- this.getString.setState(1);
- } else {
- this.getString.setState(2);
- var4 = "Incorrect login/password !";
- }
-
- this.commandAction(this.append, this);
- Alert var5 = new Alert("Info", var4, (Image)null, AlertType.INFO);
- this.getString.I(var5);
- }
- }
-